package com.example.service.impl;

import com.example.pojo.msgDevice;

import com.example.mapper.AlarmMapper;
import com.example.service.AlarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: parem-yunstiu
 * @description:
 * @author:fanzhihui
 * @create: 2021-04-27 15:18
 **/
@Service
public class AlarmServiceImpl implements AlarmService {
    @Autowired
    private AlarmMapper alarmMapper;

    @Override
    public msgDevice select(Integer dbid, String alarmDescription, String modelId, String alarmGrade) {
        return alarmMapper.select(dbid,alarmDescription, modelId,alarmGrade);
    }
    @Override
    public void insertAlarm(msgDevice msgDevice) {
        alarmMapper.insertAlarm(msgDevice);
    }

    @Override
    public int update(msgDevice alarm) {
      return   alarmMapper.update(alarm);
    }

}
